<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>

</head>

<body>
<div th:replace="common/top">

</div>

<div id="Content">
    <div id="BackLink">
        <a href="/catalog/viewmain">Return to Main Menu</a>
    </div>

    <div id="Catalog">

        <h2 th:text="${product.name}"></h2>

        <table>
            <tr>
                <th>Item ID</th>
                <th>Product ID</th>
                <th>Description</th>
                <th>List Price</th>
                <th>&nbsp;</th>
            </tr>

            <tr th:each="item:${itemList}">
                <td>
                    <a href="" th:text="${item.itemId}"> </a>
                </td>

                <td th:text="${item.product.productId}">
                </td>
                <td th:text="${item.attribute1} ${item.attribute2} ${item.attribute3}
                    ${item.attribute4} ${item.attribute5} ${product.name}">
                </td>
                <td>
                    <a class="Button" href="addItemToCart?workingItemId=${item.itemId}">Add to Cart</a>
                </td>
                <td th:text="${item.listPrice}" th:pattern="$#,##0.00"></td>
            </tr>

        </table>

    </div>
</div>
<div th:replace="common/bottom">

</div>

</div>
</body>
</html>